package com.hegongda.okcmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hegongda.common.utils.PageUtils;
import com.hegongda.okcmall.product.entity.CategoryEntity;
import com.hegongda.okcmall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author Liuweidong
 * @email Liuweidong@gmail.com
 * @date 2021-01-31 17:57:14
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void deleteMenuByIds(Long[] catIds);

    List<CategoryEntity> listTree();

    Long[] getCategoryPath(Long catelogId);

    CategoryEntity selectById(Long catalogId);

    List<CategoryEntity> queryCategoryLevel();

    Map<String, List<Catelog2Vo>> getCatelog2();
}

